import Vue from 'vue'
import Router from 'vue-router'
import Layout from '../views/layout/Layout'
import Nothing from '../views/nothing/nothing'
import resetPwd from '../views/expertManagement/resetPwd'

// in development-env not use lazy-loading, because lazy-loading too many pages will cause webpack hot update too slow. so only in production use lazy-loading;
// detail: https://panjiachen.github.io/vue-element-admin-site/#/lazy-loading

Vue.use(Router)

/* Layout */

/**
 * hidden: true                   if `hidden:true` will not show in the sidebar(default is false)
 * alwaysShow: true               if set true, will always show the root menu, whatever its child routes length
 *                                if not set alwaysShow, only more than one route under the children
 *                                it will becomes nested mode, otherwise not show the root menu
 * redirect: noredirect           if `redirect:noredirect` will no redirct in the breadcrumb
 * name:'router-name'             the name is used by <keep-alive> (must set!!!)
 * meta : {
    title: 'title'               the name show in submenu and breadcrumb (recommend set)
    icon: 'svg-name'             the icon show in the sidebar,
  }
 **/
export const constantRouterMap = [
  {
    path: '/home',
    component: () => import('@/views/home/index'),
    hidden: true
  },
  {
    path: '/InstitutionalStatisticalAnalysis',
    name: 'InstitutionalStatisticalAnalysis',
    alwaysShow: false,
    component: resolve => require(['@/views/InstitutionalStatisticalAnalysis/index'], resolve),
    meta: { title: '机构统计分析', icon: 'blue_dot_icon', permitName: 'system_terminalList' }
  },
  {
    path: '/expertAnalysis',
    name: 'expertAnalysis',
    alwaysShow: false,
    component: resolve => require(['@/views/expertAnalysis/index'], resolve),
    meta: { title: '专家分析', icon: 'blue_dot_icon', permitName: 'system_terminalList' }
  },
  {
    path: '/statisticalAnalysis',
    name: 'statisticalAnalysis',
    alwaysShow: false,
    component: resolve => require(['@/views/statisticalAnalysis/index'], resolve),
    meta: { title: '科普资料-统计分析', icon: 'blue_dot_icon', permitName: 'system_terminalList' }
  },
  {
    path: '/AwardWinningAnalysis',
    name: 'AwardWinningAnalysis',
    alwaysShow: false,
    component: resolve => require(['@/views/AwardWinningAnalysis/index'], resolve),
    meta: { title: '获奖作品-统计分析', icon: 'blue_dot_icon', permitName: 'system_terminalList' }
  },

  // {
  //     path: '/login',
  //     component: () => import('@/views/login/index'),
  //     hidden: true
  // },

  // {
  //     path: '/register',
  //     component: () => import('@/views/expertManagement/register'),
  //     hidden: true
  // },
  // {
  //     path: '/resetPwd',
  //     component: resetPwd,
  //     hidden: true
  // },
  // {
  //     path: '/404',
  //     component: () => import('@/views/404'),
  //     hidden: true
  // },
  // {
  //     path: '/401',
  //     component: () => import('@/views/401'),
  //     hidden: true
  // },
  // {
  //     path: '/tokenError',
  //     component: () => import('@/views/tokenError/index'),
  //     hidden: true
  // },
  // {
  //     path: '/',
  //     // component: Layout,
  //     hidden: true,
  //     redirect: '/home/homePage',
  //     children: [

  //         /*   {
  //                path: '/profile',
  //                name: 'profile',
  //                hidden: true,
  //                component: () => import('@/views/sys/user/profile/index'),
  //                meta: { title: '个人中心' }
  //            }*/
  //     ]
  // }
]

export default new Router({
  // mode: 'history', //后端支持可开
  scrollBehavior: () => ({
    y: 0
  }),
  routes: constantRouterMap
})

export const asyncRouterMap = []
//  [
//     {
//         path: '/home',
//         component: Layout,
//         redirect: 'noredirect',
//         meta: { title: '首页', icon: 'el-icon-s-home', permitName: 'system' },
//         children: [
//             {
//                 path: 'homePage',
//                 name: 'homePage',
//                 alwaysShow: true,
//                 component: resolve => require(['@/views/home/index'], resolve),
//                 meta: { title: '首页', icon: 'blue_dot_icon', permitName: 'system_terminalList' }
//             },
//             {
//                 path: 'homePages',
//                 name: 'homePages',
//                 hidden: true,
//                 component: resolve => require(['@/views/home/index'], resolve),
//                 meta: { title: '首页', icon: 'blue_dot_icon', permitName: 'system_terminalList' }
//             }
//         ]
//     },
//     {
//         path: '/dpPage',
//         component: Layout,
//         redirect: 'noredirect',
//         meta: { title: '大屏管理', icon: 'el-icon-s-management', permitName: 'system' },
//         children: [
//             // {
//             //     path: 'jkzyk',
//             //     name: 'jkzyk',
//             //     alwaysShow: true,
//             //     component: resolve => require(['@/views/dpPage/jkzyk'], resolve),
//             //     meta: { title: '健康资源库', icon: 'blue_dot_icon', permitName: 'system_terminalList' }
//             // },
//             {
//                 path: 'zhst',
//                 name: 'zhst',
//                 alwaysShow: true,
//                 component: resolve => require(['@/views/dpPage/zhst'], resolve),
//                 meta: { title: '综合视图', icon: 'blue_dot_icon', permitName: 'system_terminalList' }
//             },
//             {
//                 path: 'zjst',
//                 name: 'zjst',
//                 alwaysShow: true,
//                 component: resolve => require(['@/views/dpPage/zjst'], resolve),
//                 meta: { title: '健康资源库', icon: 'blue_dot_icon', permitName: 'system_terminalList' }
//             },
//             // {
//             //     path: 'zyst',
//             //     name: 'zyst',
//             //     alwaysShow: true,
//             //     component: resolve => require(['@/views/dpPage/zyst'], resolve),
//             //     meta: { title: '资源视图', icon: 'blue_dot_icon', permitName: 'system_terminalList' }
//             // }
//         ]
//     },
//     {
//         path: '/examine',
//         component: Layout,
//         redirect: 'noredirect',
//         meta: { title: '我的审核', icon: 'el-icon-s-management', permitName: 'system' },
//         children: [
//             {
//                 path: 'ToBeReviewed',
//                 name: 'ToBeReviewed',
//                 alwaysShow: true,
//                 component: resolve => require(['@/views/ToBeReviewed/index'], resolve),
//                 meta: { title: '待审核', icon: 'blue_dot_icon', permitName: 'system_terminalList' }
//             },
//             {
//                 path: 'audited',
//                 name: 'audited',
//                 alwaysShow: true,
//                 component: resolve => require(['@/views/audited/index'], resolve),
//                 meta: { title: '已审核', icon: 'blue_dot_icon', permitName: 'system_terminalList' }
//             }
//         ]
//     },
//     {
//         path: '/userManagement',
//         component: Layout,
//         redirect: 'noredirect',
//         meta: { title: '用户管理', icon: 'el-icon-user', permitName: 'system' },
//         children: [
//             {
//                 path: 'userManagement',
//                 name: 'userManagement',
//                 alwaysShow: true,
//                 component: resolve => require(['@/views/userManagement/index'], resolve),
//                 meta: { title: '用户管理', icon: 'blue_dot_icon', permitName: 'system_terminalList' }
//             }, {
//                 path: 'collect',
//                 name: 'collect',
//                 alwaysShow: true,
//                 component: resolve => require(['@/views/collect/index'], resolve),
//                 meta: { title: '用户收藏', icon: 'blue_dot_icon', permitName: 'system_terminalList' }
//             }, {
//                 path: 'follow',
//                 name: 'follow',
//                 alwaysShow: true,
//                 component: resolve => require(['@/views/follow/index'], resolve),
//                 meta: { title: '用户关注', icon: 'blue_dot_icon', permitName: 'system_terminalList' }
//             },
//             {
//                 path: 'userComment',
//                 name: 'userComment',
//                 alwaysShow: true,
//                 component: resolve => require(['@/views/userComment/index'], resolve),
//                 meta: { title: '用户评论', icon: 'blue_dot_icon', permitName: 'system_terminalList' }
//             },

//         ]
//     },
//     {
//         path: '/organizationManagement',
//         component: Layout,
//         redirect: 'noredirect',
//         meta: { title: '机构管理', icon: 'el-icon-s-ticket', permitName: 'system' },
//         children: [
//             {
//                 path: 'organizationManagement',
//                 name: 'organizationManagement',
//                 alwaysShow: true,
//                 component: resolve => require(['@/views/organizationManagement/index'], resolve),
//                 meta: { title: '机构管理', icon: 'blue_dot_icon', permitName: 'system_terminalList' }
//             },
//             {
//                 path: 'InstitutionalStatisticalAnalysis',
//                 name: 'InstitutionalStatisticalAnalysis',
//                 alwaysShow: false,
//                 component: resolve => require(['@/views/InstitutionalStatisticalAnalysis/index'], resolve),
//                 meta: { title: '机构统计分析', icon: 'blue_dot_icon', permitName: 'system_terminalList' }
//             },
//         ]
//     },

//     {
//         path: '/expertManagement',
//         component: Layout,
//         redirect: 'noredirect',
//         meta: { title: '专家管理', icon: 'el-icon-s-custom', permitName: 'system' },
//         children: [
//             {
//                 path: 'expertInfo',
//                 name: 'expertInfo',
//                 alwaysShow: true,
//                 component: resolve => require(['@/views/expertManagement/expertInfo'], resolve),
//                 meta: { title: '个人信息', icon: 'blue_dot_icon', permitName: 'system_terminalList' }
//             },
//             {
//                 path: 'expertManagement',
//                 name: 'expertManagement',
//                 alwaysShow: true,
//                 component: resolve => require(['@/views/expertManagement/index'], resolve),
//                 meta: { title: '专家管理', icon: 'blue_dot_icon', permitName: 'system_terminalList' }
//             },
//             {
//                 path: 'expertAnalysis',
//                 name: 'expertAnalysis',
//                 alwaysShow: false,
//                 component: resolve => require(['@/views/expertAnalysis/index'], resolve),
//                 meta: { title: '专家分析', icon: 'blue_dot_icon', permitName: 'system_terminalList' }
//             },
//             {
//                 path: 'expertSolution',
//                 name: 'expertSolution',
//                 alwaysShow: false,
//                 component: resolve => require(['@/views/expertSolution/index'], resolve),
//                 meta: { title: '专家解答', icon: 'blue_dot_icon', permitName: 'system_terminalList' }
//             },
//             {
//                 path: 'expertApprovalConfig',
//                 name: 'expertApprovalConfig',
//                 alwaysShow: false,
//                 component: resolve => require(['@/views/expertApprovalConfig/index'], resolve),
//                 meta: { title: '审批配置', icon: 'blue_dot_icon', permitName: 'system_terminalList' }
//             }, {
//                 path: 'expertApprovalFlow',
//                 name: 'expertApprovalFlow',
//                 hidden: true,
//                 component: resolve => require(['@/views/expertApprovalConfig/expertApprovalFlow'], resolve),
//                 meta: { title: '审批流程', icon: 'blue_dot_icon', permitName: 'system_terminalList' }
//             }, {
//                 path: 'expertpublisher',
//                 name: 'expertpublisher',
//                 hidden: true,
//                 component: resolve => require(['@/views/expertApprovalConfig/expertPublisher'], resolve),
//                 meta: { title: '审批发布人', icon: 'blue_dot_icon', permitName: 'system_terminalList' }
//             }, {
//                 path: 'expertapprovalPro',
//                 name: 'expertapprovalPro',
//                 hidden: true,
//                 component: resolve => require(['@/views/expertApprovalConfig/expertApprovalPro'], resolve),
//                 meta: { title: '审批人', icon: 'blue_dot_icon', permitName: 'system_terminalList' }
//             },
//             {
//                 path: 'expertToBeReviewed',
//                 name: 'expertToBeReviewed',
//                 alwaysShow: false,
//                 component: resolve => require(['@/views/expertToBeReviewed/index'], resolve),
//                 meta: { title: '专家待审批', icon: 'blue_dot_icon', permitName: 'system_terminalList' }
//             },
//             {
//                 path: 'expertAudited',
//                 name: 'expertAudited',
//                 alwaysShow: false,
//                 component: resolve => require(['@/views/expertAudited/index'], resolve),
//                 meta: { title: '专家已审核', icon: 'blue_dot_icon', permitName: 'system_terminalList' }
//             },

//             {
//                 path: 'summaryInfo',
//                 name: 'summaryInfo',
//                 alwaysShow: true,
//                 component: resolve => require(['@/views/expertManagement/summaryInfo'], resolve),
//                 meta: { title: '专家汇总表', icon: 'blue_dot_icon', permitName: 'system_terminalList' }
//             },

//         ]
//     },
//     {
//         path: '/topNews',
//         component: Layout,
//         redirect: 'noredirect',
//         meta: { title: '头条资讯', icon: 'el-icon-document', permitName: 'system' },
//         children: [
//             {
//                 path: 'topMessage',
//                 name: 'topMessage',
//                 alwaysShow: true,
//                 component: resolve => require(['@/views/topMessage/index'], resolve),
//                 meta: { title: '头条资讯', icon: 'blue_dot_icon', permitName: 'system_terminalList' }
//             },
//             {
//                 path: 'expertManagement',
//                 name: 'expertManagement',
//                 alwaysShow: false,
//                 hidden: true,
//                 component: resolve => require(['@/views/expertManagement/index'], resolve),
//                 meta: { title: '专家管理', icon: 'blue_dot_icon', permitName: 'system_terminalList' }
//             },
//         ]
//     },
//     {
//         path: '/healthyShaanxi',
//         component: Layout,
//         redirect: 'noredirect',
//         meta: { title: '健康陕西', icon: 'el-icon-school', permitName: 'system' },
//         children: [
//             {
//                 path: 'policyInterpretation',
//                 name: 'policyInterpretation',
//                 alwaysShow: true,
//                 component: resolve => require(['@/views/policyInterpretation/index'], resolve),
//                 meta: { title: '政策解读', icon: 'blue_dot_icon', permitName: 'system_terminalList' }
//             },
//             {
//                 path: 'HealthyAction',
//                 name: 'HealthyAction',
//                 alwaysShow: true,
//                 component: resolve => require(['@/views/HealthyAction/index'], resolve),
//                 meta: { title: '健康陕西行动', icon: 'blue_dot_icon', permitName: 'system_terminalList' }
//             },
//         ]
//     },
//     {
//         path: '/pHealthSeriesColumns',
//         component: Layout,
//         redirect: 'noredirect',
//         meta: { title: '百姓健康系列栏目', icon: 'el-icon-s-check', permitName: 'system' },
//         children: [
//             {
//                 path: 'ShaanxiDaily',
//                 name: 'ShaanxiDaily',
//                 alwaysShow: true,
//                 component: resolve => require(['@/views/ShaanxiDaily/index'], resolve),
//                 meta: { title: '《陕西日报》专版', icon: 'blue_dot_icon', permitName: 'system_terminalList' }
//             },
//             {
//                 path: 'shanxiDailyDetails',
//                 name: 'shanxiDailyDetails',
//                 hidden: true,
//                 component: resolve => require(['@/views/ShaanxiDaily/content'], resolve),
//                 meta: { title: '《陕西日报》专版内容', icon: 'blue_dot_icon', permitName: 'system_terminalList' }
//             },
//             {
//                 path: 'senilityHealth',
//                 name: 'senilityHealth',
//                 alwaysShow: true,
//                 component: resolve => require(['@/views/senilityHealth/index'], resolve),
//                 meta: { title: '《陕西老年健康报》专版', icon: 'blue_dot_icon', permitName: 'system_terminalList' }
//             },
//             {
//                 path: 'senilityHealthContent',
//                 name: 'senilityHealthContent',
//                 hidden: true,
//                 component: resolve => require(['@/views/senilityHealth/content'], resolve),
//                 meta: { title: '《陕西老年健康报》专版内容', icon: 'blue_dot_icon', permitName: 'system_terminalList' }
//             },
//             {
//                 path: 'HealthJournal',
//                 name: 'HealthJournal',
//                 alwaysShow: true,
//                 component: resolve => require(['@/views/HealthJournal/index'], resolve),
//                 meta: { title: '《三秦百姓健康》杂志', icon: 'blue_dot_icon', permitName: 'system_terminalList' }
//             },
//             {
//                 path: 'newMedia',
//                 name: 'newMedia',
//                 alwaysShow: true,
//                 component: resolve => require(['@/views/newMedia/index'], resolve),
//                 meta: { title: '新媒体', icon: 'blue_dot_icon', permitName: 'system_terminalList' }
//             },
//             {
//                 path: 'TVColumn',
//                 name: 'TVColumn',
//                 alwaysShow: true,
//                 component: resolve => require(['@/views/TVColumn/index'], resolve),
//                 meta: { title: '电视栏目', icon: 'blue_dot_icon', permitName: 'system_terminalList' }
//             },
//             {
//                 path: 'RadioColumn',
//                 name: 'RadioColumn',
//                 alwaysShow: true,
//                 component: resolve => require(['@/views/RadioColumn/index'], resolve),
//                 meta: { title: '广播栏目', icon: 'blue_dot_icon', permitName: 'system_terminalList' }
//             },
//         ]
//     },
//     {
//         path: '/KnowledgeBase',
//         component: Layout,
//         redirect: 'noredirect',
//         meta: { title: '知识库', icon: 'el-icon-tickets', permitName: 'WorksLibrary' },
//         children: [
//             {
//                 path: 'KnowledgeProvincial',
//                 name: 'KnowledgeProvincial',
//                 alwaysShow: true,
//                 component: resolve => require(['@/views/KnowledgeProvincial/index'], resolve),
//                 meta: { title: '省级库', icon: 'blue_dot_icon', permitName: 'system_terminalList' }
//             },
//             {
//                 path: 'CityKnowledge',
//                 name: 'CityKnowledge',
//                 alwaysShow: false,
//                 component: resolve => require(['@/views/CityKnowledge/index'], resolve),
//                 meta: { title: '市级库', icon: 'blue_dot_icon', permitName: 'system_terminalList' }
//             },
//             {
//                 path: 'countyKnowledge',
//                 name: 'countyKnowledge',
//                 alwaysShow: false,
//                 component: resolve => require(['@/views/countyKnowledge/index'], resolve),
//                 meta: { title: '县区级库', icon: 'blue_dot_icon', permitName: 'system_terminalList' }
//             },
//             {
//                 path: 'knowledge',
//                 name: 'knowledge',
//                 alwaysShow: false,
//                 component: resolve => require(['@/views/scienceKnowledge/index'], resolve),
//                 meta: { title: '知识', icon: 'blue_dot_icon', permitName: 'system_terminalList' }
//             },
//         ]
//     },
//     {
//         path: '/DataBank',
//         component: Layout,
//         redirect: 'noredirect',
//         meta: { title: '资料库', icon: 'el-icon-printer', permitName: 'WorksLibrary' },
//         children: [
//             {
//                 path: 'DataProvincial',
//                 name: 'DataProvincial',
//                 alwaysShow: true,
//                 component: resolve => require(['@/views/DataProvincial/index'], resolve),
//                 meta: { title: '省级库', icon: 'blue_dot_icon', permitName: 'system_terminalList' }
//             },
//             {
//                 path: 'CityData',
//                 name: 'CityData',
//                 alwaysShow: false,
//                 component: resolve => require(['@/views/CityData/index'], resolve),
//                 meta: { title: '市级库', icon: 'blue_dot_icon', permitName: 'system_terminalList' }
//             },
//             {
//                 path: 'countyData',
//                 name: 'countyData',
//                 alwaysShow: false,
//                 component: resolve => require(['@/views/countyData/index'], resolve),
//                 meta: { title: '县区级库', icon: 'blue_dot_icon', permitName: 'system_terminalList' }
//             },
//             {
//                 path: 'PopularScienceMaterials',
//                 name: 'PopularScienceMaterials',
//                 alwaysShow: false,
//                 component: resolve => require(['@/views/PopularScienceMaterials/index'], resolve),
//                 meta: { title: '科普资料', icon: 'blue_dot_icon', permitName: 'system_terminalList' }
//             },
//             {
//                 path: 'statisticalAnalysis',
//                 name: 'statisticalAnalysis',
//                 alwaysShow: false,
//                 component: resolve => require(['@/views/statisticalAnalysis/index'], resolve),
//                 meta: { title: '科普资料-统计分析', icon: 'blue_dot_icon', permitName: 'system_terminalList' }
//             },
//         ]
//     },
//     {
//         path: '/WorksLibrary',
//         component: Layout,
//         redirect: 'noredirect',
//         meta: { title: '作品库', icon: 'el-icon-mobile', permitName: 'WorksLibrary' },
//         children: [
//             {
//                 path: 'AwardWinningWork',
//                 name: 'AwardWinningWork',
//                 alwaysShow: true,
//                 component: resolve => require(['@/views/AwardWinningWork/index'], resolve),
//                 meta: { title: '获奖作品', icon: 'blue_dot_icon', permitName: 'system_terminalList' }
//             },
//             {
//                 path: 'AwardWinningAnalysis',
//                 name: 'AwardWinningAnalysis',
//                 alwaysShow: false,
//                 component: resolve => require(['@/views/AwardWinningAnalysis/index'], resolve),
//                 meta: { title: '获奖作品-统计分析', icon: 'blue_dot_icon', permitName: 'system_terminalList' }
//             },
//         ]
//     },
//     {
//         path: '/publicityActivity',
//         component: Layout,
//         redirect: 'noredirect',
//         meta: { title: '宣传活动', icon: 'el-icon-s-finance', permitName: 'publicityActivity' },
//         children: [
//             {
//                 path: 'CommunityActivity',
//                 name: 'CommunityActivity',
//                 alwaysShow: true,
//                 component: resolve => require(['@/views/CommunityActivity/index'], resolve),
//                 meta: { title: '社区活动', icon: 'blue_dot_icon', permitName: 'system_terminalList' }
//             }, {
//                 path: 'Forumlecture',
//                 name: 'Forumlecture',
//                 alwaysShow: true,
//                 component: resolve => require(['@/views/Forumlecture/index'], resolve),
//                 meta: { title: '论坛讲座', icon: 'blue_dot_icon', permitName: 'system_terminalList' }
//             }, {
//                 path: 'liveBroadcast',
//                 name: 'liveBroadcast',
//                 alwaysShow: true,
//                 component: resolve => require(['@/views/liveBroadcast/index'], resolve),
//                 meta: { title: '在线直播', icon: 'blue_dot_icon', permitName: 'system_terminalList' }
//             }, {
//                 path: 'liveStreaming',
//                 name: 'liveStreaming',
//                 alwaysShow: true,
//                 component: resolve => require(['@/views/liveStreaming/index'], resolve),
//                 meta: { title: '历史回放', icon: 'blue_dot_icon', permitName: 'system_terminalList' }
//             }, {
//                 path: 'healthAwarenessDay',
//                 name: 'healthAwarenessDay',
//                 alwaysShow: true,
//                 component: resolve => require(['@/views/healthAwarenessDay/index'], resolve),
//                 meta: { title: '卫生宣传日', icon: 'blue_dot_icon', permitName: 'system_terminalList' }
//             }, {
//                 path: 'propagandaContent',
//                 name: 'propagandaContent',
//                 alwaysShow: true,
//                 component: resolve => require(['@/views/propagandaContent/index'], resolve),
//                 meta: { title: '卫生宣传内容', icon: 'blue_dot_icon', permitName: 'system_terminalList' }
//             },{
//                 path: 'healthyShaanxiCompetition',
//                 name: 'healthyShaanxiCompetition',
//                 alwaysShow: true,
//                 component: resolve => require(['@/views/healthyShaanxiCompetition/index'], resolve),
//                 meta: { title: '健康陕西行动知行大赛', icon: 'blue_dot_icon', permitName: 'system_terminalList', keepAlive: false }
//             },{
//                 path: 'healthyShaanxiCompetitionZhiye',
//                 name: 'healthyShaanxiCompetitionZhiye',
//                 alwaysShow: true,
//                 component: resolve => require(['@/views/healthyShaanxiCompetition/index'], resolve),
//                 meta: { title: '职业健康作品征集大赛', icon: 'blue_dot_icon', permitName: 'system_terminalList', keepAlive: false }
//             },{
//                 path: 'healthyShaanxiCompetitionFangxun',
//                 name: 'healthyShaanxiCompetitionFangxun',
//                 alwaysShow: true,
//                 component: resolve => require(['@/views/healthyShaanxiCompetition/index'], resolve),
//                 meta: { title: '知汛防汛', icon: 'blue_dot_icon', permitName: 'system_terminalList', keepAlive: false }
//             }

//         ]
//     },
//     {
//         path: '/QuestionnaireManagement',
//         component: Layout,
//         redirect: 'noredirect',
//         meta: { title: '竞答/问卷管理', icon: 'el-icon-edit', permitName: 'system' },
//         children: [
//             {
//                 path: 'ActivityManagement',
//                 name: 'ActivityManagement',
//                 alwaysShow: true,
//                 component: resolve => require(['@/views/ActivityManagement/index'], resolve),
//                 meta: { title: '活动管理', icon: 'blue_dot_icon', permitName: 'system_terminalList' }
//             },
//             {
//                 path: 'topic',
//                 name: 'topic',
//                 hidden: true,
//                 component: resolve => require(['@/views/ActivityManagement/topic'], resolve),
//                 meta: { title: '关联题目', icon: 'blue_dot_icon', permitName: 'system_terminalList' }
//             },
//             {
//                 path: 'TopicManger',
//                 name: 'TopicManger',
//                 alwaysShow: true,
//                 component: resolve => require(['@/views/TopicManger/index'], resolve),
//                 meta: { title: '题目管理', icon: 'blue_dot_icon', permitName: 'system_terminalList' }
//             },
//             {
//                 path: 'AnswerManger',
//                 name: 'AnswerManger',
//                 alwaysShow: true,
//                 component: resolve => require(['@/views/AnswerManger/index'], resolve),
//                 meta: { title: '答题管理', icon: 'blue_dot_icon', permitName: 'system_terminalList' }
//             },
//         ]
//     },
//     {
//         path: '/system',
//         component: Layout,
//         redirect: 'noredirect',
//         meta: { title: '系统管理', icon: 'el-icon-setting', permitName: 'system' },
//         children: [

//             {
//                 path: 'account',
//                 name: 'account',
//                 alwaysShow: true,
//                 component: resolve => require(['@/views/account/index'], resolve),
//                 meta: { title: '账户管理', icon: 'blue_dot_icon', permitName: 'system_terminalList' }
//             },
//             {
//                 path: 'roleManagement',
//                 name: 'roleManagement',
//                 alwaysShow: true,
//                 component: resolve => require(['@/views/roleManagement/index'], resolve),
//                 meta: { title: '角色管理', icon: 'blue_dot_icon', permitName: 'system_terminalList' }
//             },
//             {
//                 path: 'PermissionSetting',
//                 name: 'PermissionSetting',
//                 hidden: true,
//                 component: resolve => require(['@/views/PermissionSetting/index'], resolve),
//                 meta: { title: '权限设置', icon: 'blue_dot_icon', permitName: 'system_terminalList' }
//             },
//             {
//                 path: 'sysSetting',
//                 name: 'sysSetting',
//                 alwaysShow: true,
//                 component: resolve => require(['@/views/sysSetting/index'], resolve),
//                 meta: { title: '评论配置', icon: 'blue_dot_icon', permitName: 'system_terminalList' }
//             },
//             {
//                 path: 'dictManagement',
//                 name: 'dictManagement',
//                 alwaysShow: true,
//                 component: resolve => require(['@/views/dictManagement/index'], resolve),
//                 meta: { title: '字典管理', icon: 'blue_dot_icon', permitName: 'system_terminalList' }
//             },
//             {
//                 path: 'columnManagement',
//                 name: 'columnManagement',
//                 alwaysShow: true,
//                 component: resolve => require(['@/views/columnManagement/index'], resolve),
//                 meta: { title: '栏目管理', icon: 'blue_dot_icon', permitName: 'system_terminalList' }
//             },
//             {
//                 path: 'regionalManagement',
//                 name: 'regionalManagement',
//                 alwaysShow: true,
//                 component: resolve => require(['@/views/regionalManagement/index'], resolve),
//                 meta: { title: '区划管理', icon: 'blue_dot_icon', permitName: 'system_terminalList' }
//             },
//             {
//                 path: 'ApprovalConfig',
//                 name: 'ApprovalConfig',
//                 alwaysShow: true,
//                 component: resolve => require(['@/views/ApprovalConfig/index'], resolve),
//                 meta: { title: '资源审批配置', icon: 'blue_dot_icon', permitName: 'system_terminalList' }
//             },
//             {
//                 path: 'ApprovalFlow',
//                 name: 'ApprovalFlow',
//                 hidden: true,
//                 component: resolve => require(['@/views/ApprovalConfig/ApprovalFlow'], resolve),
//                 meta: { title: '审批流程', icon: 'blue_dot_icon', permitName: 'system_terminalList' }
//             }, {
//                 path: 'publisher',
//                 name: 'publisher',
//                 hidden: true,
//                 component: resolve => require(['@/views/ApprovalConfig/publisher'], resolve),
//                 meta: { title: '审批发布人', icon: 'blue_dot_icon', permitName: 'system_terminalList' }
//             }, {
//                 path: 'approvalPro',
//                 name: 'approvalPro',
//                 hidden: true,
//                 component: resolve => require(['@/views/ApprovalConfig/approvalPro'], resolve),
//                 meta: { title: '审批人', icon: 'blue_dot_icon', permitName: 'system_terminalList' }
//             }
//         ]
//     },

//     {
//         path: '/LogSetting',
//         component: Layout,
//         redirect: 'noredirect',
//         meta: { title: '日志管理', icon: 'el-icon-date', permitName: 'system' },
//         children: [
//             {
//                 path: 'sysLog',
//                 name: 'sysLog',
//                 alwaysShow: true,
//                 component: resolve => require(['@/views/sysLog/index'], resolve),
//                 meta: { title: '系统日志', icon: 'blue_dot_icon', permitName: 'system_terminalList' }
//             },
//             {
//                 path: 'sysClassifyManger',
//                 name: 'sysClassifyManger',
//                 alwaysShow: true,
//                 component: resolve => require(['@/views/sysClassifyManger/index'], resolve),
//                 meta: { title: '分类管理', icon: 'blue_dot_icon', permitName: 'system_terminalList' }
//             },
//         ]
//     },


//     {
//         path: '/systemSetting',
//         component: Layout,
//         redirect: 'noredirect',
//         meta: { title: '数据采集', icon: 'el-icon-s-tools', permitName: 'system' },
//         children: [
//             {
//                 path: 'DataAcquisition',
//                 name: 'DataAcquisition',
//                 alwaysShow: true,
//                 component: resolve => require(['@/views/DataAcquisition/index'], resolve),
//                 meta: { title: '数据采集', icon: 'blue_dot_icon', permitName: 'system_terminalList' }
//             },
//             {
//                 path: 'sysClassifyManger',
//                 name: 'sysClassifyManger',
//                 alwaysShow: true,
//                 hidden: true,
//                 component: resolve => require(['@/views/sysClassifyManger/index'], resolve),
//                 meta: { title: '分类管理', icon: 'blue_dot_icon', permitName: 'system_terminalList' }
//             },

//         ]
//     },
//     {
//         path: '/sysDownload',
//         component: Layout,
//         redirect: 'noredirect',
//         meta: { title: '我的下载', icon: 'el-icon-download', permitName: 'system' },
//         children: [
//             {
//                 path: 'myDownload',
//                 name: 'myDownload',
//                 alwaysShow: true,
//                 component: resolve => require(['@/views/myDownload/index'], resolve),
//                 meta: { title: '我的下载', icon: 'blue_dot_icon', permitName: 'system_terminalList' }
//             },
//             {
//                 path: 'sysClassifyManger',
//                 name: 'sysClassifyManger',
//                 hidden: true,
//                 alwaysShow: true,
//                 component: resolve => require(['@/views/sysClassifyManger/index'], resolve),
//                 meta: { title: '分类管理', icon: 'blue_dot_icon', permitName: 'system_terminalList' }
//             },

//         ]
//     },
//     {
//         path: '/recycle',
//         component: Layout,
//         redirect: 'noredirect',
//         meta: { title: '回收站', icon: 'el-icon-delete-solid', permitName: 'system' },
//         children: [
//             {
//                 path: 'recycle',
//                 name: 'recycle',
//                 alwaysShow: true,
//                 component: resolve => require(['@/views/recycle/index'], resolve),
//                 meta: { title: '回收站', icon: 'blue_dot_icon', permitName: 'system_terminalList' }
//             },
//             {
//                 path: 'sysClassifyManger',
//                 name: 'sysClassifyManger',
//                 hidden: true,
//                 alwaysShow: true,
//                 component: resolve => require(['@/views/sysClassifyManger/index'], resolve),
//                 meta: { title: '分类管理', icon: 'blue_dot_icon', permitName: 'system_terminalList' }
//             },

//         ]
//     },
//     {
//         path: '/personalCenter',
//         component: Layout,
//         hidden: true,
//         redirect: 'noredirect',
//         meta: { title: '个人中心', icon: 'el-icon-user-solid', permitName: 'personalCenter' },
//         children: [
//             {
//                 path: 'personalCenterInfo',
//                 name: 'personalCenterInfo',
//                 alwaysShow: true,
//                 component: resolve => require(['@/views/personalCenter/index'], resolve),
//                 meta: { title: '个人中心', icon: 'blue_dot_icon', permitName: 'personalCenter_personalCenterInfo' }
//             },

//             {
//                 path: 'systemName',
//                 name: 'systemName',
//                 alwaysShow: true,
//                 component: resolve => require(['@/views/personalCenter/sys'], resolve),
//                 meta: { title: '系统名称', icon: 'blue_dot_icon', permitName: 'personalCenter_personalCenterInfo' }
//             },
//         ]
//     },


//     // {
//     //     path: '/bigData',
//     //     component: Nothing,
//     //     redirect: 'noredirect',
//     //     hidden: true,
//     //     meta: {title: '大屏', icon: 'system_icon',permitName:'bigData'},
//     //     children: [
//     //         {
//     //             path: 'index',
//     //             name: 'index',
//     //             hidden: true,
//     //             component: resolve => require(['@/views/bigData/index.vue'], resolve),
//     //             meta: {title: '大屏',icon: 'blue_dot_icon',permitName:'bigData_index'}
//     //         },
//     //     ]
//     // },
//     // {
//     //     path: '',
//     //     component: Nothing,
//     //     redirect: '/home',
//     //     meta: {title: '主页', icon: 'systemset'},
//     //     children: [
//     //         {
//     //             path: 'home',
//     //             component: (resolve) => require(['@/views/home/index'], resolve),
//     //             name: 'home',
//     //             meta: { title: '主页', icon: 'home_icon', affix: true, noCache: true }
//     //         }
//     //     ]
//     // },

//     // {
//     //     path: '/vehicleMonitoring',
//     //     component: Layout,
//     //     redirect: 'noredirect',
//     //     meta: {title: '车辆监控', icon: 'vehicle_monitoring_icon',permitName:'vehicleMonitoring'},
//     //     children: [
//     //         {
//     //             path: 'vehicleMonitoring',
//     //             name: 'vehicleMonitoring',
//     //             alwaysShow: true,
//     //             component: resolve => require(['@/views/vehicleMonitoring/VehicleMonitoring'], resolve),
//     //             meta: {title: '车辆监控',icon: 'blue_dot_icon',permitName:'vehicleMonitoring_vehicleMonitoring'}
//     //         },
//     //         {
//     //             path: 'vehicleMonitoring',
//     //             name: 'vehicleMonitoring',
//     //             hidden: true,
//     //             component: resolve => require(['@/views/vehicleMonitoring/VehicleMonitoring'], resolve),
//     //             meta: {title: '车辆监控',icon: 'blue_dot_icon',permitName:'vehicleMonitoring_vehicleMonitoring'}
//     //         },
//     //     ]
//     // },

// ];



export const enterpriseRouterMap = [

]

export const notExitMap = [{
  path: '*',
  redirect: '/404',
  hidden: true
}]

console.warn('asyncRouterMap', asyncRouterMap)
